package lab02.test35;

public class Salesman extends Employee {
    double baseSalary;
    int numbers;
    double money;//销售提成=numbers*money
    public Salesman(String name,double baseSalary,int numbers,double money) {
        super(name);

        this.baseSalary=baseSalary;
        this.numbers=numbers;
        this.money=money;
    }

    @Override
    double calSalary() {
      return  baseSalary+numbers*money;
    }
}
